package weifei.wx.community.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;



@Data
@Accessors(chain = true)
public class TieCommentReply
{
    @Id(keyType = KeyType.Auto)
    private Long id;
    @NotNull
    private Long tieCommentId;
    private Long userId;
    @Column(onInsertValue = "now()")
    private Date publishTime;
    @NotNull @NotEmpty @NotBlank
    private String content;

    public TieCommentReply() {}
}


